import request from '@/utils/request'

// 查询产品--主标号列表
export function listDesignator(query) {
  return request({
    url: '/service/designator/list',
    method: 'get',
    params: query
  })
}

// 查询产品--主标号详细
export function getDesignator(id) {
  return request({
    url: '/service/designator/' + id,
    method: 'get'
  })
}

// 新增产品--主标号
export function addDesignator(data) {
  return request({
    url: '/service/designator',
    method: 'post',
    data: data
  })
}

// 修改产品--主标号
export function updateDesignator(data) {
  return request({
    url: '/service/designator',
    method: 'put',
    data: data
  })
}

// 删除产品--主标号
export function delDesignator(id) {
  return request({
    url: '/service/designator/' + id,
    method: 'delete'
  })
}
